package com.zk.erp.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zk.erp.entity.Functions;
import com.zk.erp.entity.Role;
import com.zk.erp.entity.User;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zk
 * @since 2021-04-12
 */
public interface UserMapper extends BaseMapper<User> {
    List<Role> selectRolesByUsername(String username);

    List<Functions> selectFunctionsByUsername(String username);

    IPage<User> findPage(Page page);
}
